export function setupComponent(app) {
  const components = import.meta.glob('./*/*.vue')
  console.log('components: ', components)
  for (let com in components) {
    console.log('com: ', com.match(/\.\/(.*?)\/(.*?)\.vue/))
    const comKey = com.match(/\.\/(.*?)\/(.*?)\.vue/)[2]
    const comValue = components[com].default
    app.component(comKey, comValue)
  }
}
